import { to } from 'await-to-js'

export default async (params, moreArgs) => {
    if (moreArgs.length > 0) for (var argName of moreArgs) switch (argName) {
        // case 'locationInfo':
        //     let [err, locationInfo] = await to(global.Geolocation())
        //     if (err) return Promise.reject(err)
        //     params = { ...params, locationInfo }
        //     break;
    }
    return Promise.resolve(params)
}